﻿using BCCommon;
using BCCommon.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Website.User
{
    /// <summary>
    /// 用户信息后台修改模型
    /// </summary>
    public class UserSimPutDto
    {
        /// <summary>
        /// 手机号
        /// </summary>	
        [Display(Name = "手机号")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(11, MinimumLength = 11, ErrorMessage = "{0} 长度为 {1} 个数字")]
        [RegularExpression(RegexPatterns.PHONE, ErrorMessage = "{0} 格式不正确")]
        public string Phone { get; set; }

        /// <summary>
        /// 密码
        /// </summary>	
        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(16, ErrorMessage = "{0} 长度为 {2} 到 {1} 个字符", MinimumLength = 8)]
        [RegularExpression(RegexPatterns.PASSWORD, ErrorMessage = "{0} 需包含字母和数字")]
        public string Password { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [Display(Name = "用户姓名")]
        public string UserName { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>	
        [Display(Name = "身份证号")]
        public string IdentityCardNo { get; set; }

        /// <summary>
        /// 角色
        /// </summary>	
        [Display(Name = "角色")]
        public string Role { get; set; }
        /// <summary>
        /// VIP用户
        /// </summary>
        [Display(Name = "VIP用户")]
        public bool IsVip { get; set; }
        /// <summary>
        /// 企业用户
        /// </summary>
        [Display(Name = "企业用户")]
        public bool IsEnterprise { get; set; }
        /// <summary>
        /// 省份ID
        /// </summary>
        [Display(Name = "省份ID")]
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 市ID
        /// </summary>
        [Display(Name = "市ID")]
        public string CityCode { get; set; }
        /// <summary>
        /// 区县ID
        /// </summary>
        [Display(Name = "区县ID")]
        public string CountyCode { get; set; }
    }
}
